import { zrRequest } from "./index"

export function wxlogin(data) {
  return zrRequest.post({
    url: "vehicleDetect/minProgram/login/userinfo",
    data
  })
}

export function getInfo(data) {
  return zrRequest.get({
    url: "user/getInfo"
  })
}

export function loginAgain(data = {}) {
  return zrRequest.get({
    url: "vehicleDetect/minProgram/login/again",
    data
  })
}

export function updateUserInfo(data = {}) {
  return zrRequest.post({
    url: "user/iPcsPut",
    data
  })
}

// 注销
export function deleteUser(data = {}) {
  return zrRequest.post({
    url: "vehicleDetect/minProgram/deleteUser",
    data
  })
}

// 图片上传
export function uploadImg(picBase64){
  const data = {
    content: picBase64
  }
  return zrRequest.post({
    url: "vehicleDetect/minProgram/uploadImg",
    data
  })
}


